﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ThienLoc
{
    public partial class UCFavorite : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadMonAn();
        }

        private void LoadMonAn()
        {
            string sql = "SELECT TOP 4 * FROM tblTLMonAn ORDER BY CreateDate DESC";
            DataTable dt = SqlHelper.ExecuteDataTable(CommandType.Text, sql);
            rptItem.DataSource = dt;
            rptItem.DataBind();
        }
    }
}